"nodejs";

// 打印nodejs的版本
console.log(`Node.js版本: ${process.version}`);


const { showToast } = require("toast");
const accessibility = require("accessibility");


async function main() {
    showToast("Hello, World", { log: true });
    console.log("versions:", process.versions);
    // accessibility.back();
    // accessibility.click(1000,500);
    // accessibility.clickText('音量键快捷方式');
    console.log(accessibility.currentActivity());
    console.log(accessibility.currentPackage());
    // console.log(accessibility.home())
    // console.log(accessibility.inputText('托尔斯泰'));
    console.log(accessibility.lockScreen())
}

main().catch(console.error);